/*
 * Selling Partner API for Orders
 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools.   _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
 *
 * OpenAPI spec version: v0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.FulfillmentPlanShippingConstraints;
import java.io.IOException;

/**
 * The shipping-related information of a delivery.
 */
@ApiModel(description = "The shipping-related information of a delivery.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-09-20T09:03:02.625+08:00")
public class ShippingInstructions {
  @SerializedName("CarrierCode")
  private String carrierCode = null;

  @SerializedName("ShippingMethod")
  private String shippingMethod = null;

  @SerializedName("ShippingConstraints")
  private FulfillmentPlanShippingConstraints shippingConstraints = null;

  public ShippingInstructions carrierCode(String carrierCode) {
    this.carrierCode = carrierCode;
    return this;
  }

   /**
   * The name of the carrier that delivers the package.
   * @return carrierCode
  **/
  @ApiModelProperty(value = "The name of the carrier that delivers the package.")
  public String getCarrierCode() {
    return carrierCode;
  }

  public void setCarrierCode(String carrierCode) {
    this.carrierCode = carrierCode;
  }

  public ShippingInstructions shippingMethod(String shippingMethod) {
    this.shippingMethod = shippingMethod;
    return this;
  }

   /**
   * The ship method that is used for the order.
   * @return shippingMethod
  **/
  @ApiModelProperty(value = "The ship method that is used for the order.")
  public String getShippingMethod() {
    return shippingMethod;
  }

  public void setShippingMethod(String shippingMethod) {
    this.shippingMethod = shippingMethod;
  }

  public ShippingInstructions shippingConstraints(FulfillmentPlanShippingConstraints shippingConstraints) {
    this.shippingConstraints = shippingConstraints;
    return this;
  }

   /**
   * Models constraints around shipping
   * @return shippingConstraints
  **/
  @ApiModelProperty(value = "Models constraints around shipping")
  public FulfillmentPlanShippingConstraints getShippingConstraints() {
    return shippingConstraints;
  }

  public void setShippingConstraints(FulfillmentPlanShippingConstraints shippingConstraints) {
    this.shippingConstraints = shippingConstraints;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ShippingInstructions shippingInstructions = (ShippingInstructions) o;
    return Objects.equals(this.carrierCode, shippingInstructions.carrierCode) &&
        Objects.equals(this.shippingMethod, shippingInstructions.shippingMethod) &&
        Objects.equals(this.shippingConstraints, shippingInstructions.shippingConstraints);
  }

  @Override
  public int hashCode() {
    return Objects.hash(carrierCode, shippingMethod, shippingConstraints);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ShippingInstructions {\n");
    
    sb.append("    carrierCode: ").append(toIndentedString(carrierCode)).append("\n");
    sb.append("    shippingMethod: ").append(toIndentedString(shippingMethod)).append("\n");
    sb.append("    shippingConstraints: ").append(toIndentedString(shippingConstraints)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

